using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class TSP_AlertContentMap : EntityTypeConfiguration<TSP_AlertContent>
    {
        public TSP_AlertContentMap()
        {
            // Primary Key
            this.HasKey(t => t.priId);

            // Properties
            // Table & Column Mappings
            this.ToTable("TSP_AlertContent");
            this.Property(t => t.priId).HasColumnName("priId");
            this.Property(t => t.alert_type_id).HasColumnName("alert_type_id");
            this.Property(t => t.alert_frequency_id).HasColumnName("alert_frequency_id");
        }
    }
}
